package com.vlyman.rtn.consts;

/**
 * 类描述：
 *  接口返回基础信息枚举类
 *  @author chenjs
 *  @date 2018/9/19 20:44
 **/
public enum  BaseRtn implements IBaseRtn {
    /**
     */
    SUCCESS("请求成功", 0),
    ERROR("请求失败", 1),
    EMPTY_RESULT("查无结果", 100000),
    PARAM_VALIDATION_ERROR("参数校验失败", 100001);

    private String msg;
    private int code;
    BaseRtn(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public int getCode() {
        return code;
    }
}
